package com.etc.controller;

import com.etc.entity.AccountCyd;
import com.etc.service.AccountCydService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/AccountCydController")
public class AccountCydController {
    @Autowired
    AccountCydService accountCydService;

    @RequestMapping("/findAllAccountCyd")
    public List<AccountCyd> findAllAccountCyd() {
        return accountCydService.findAllAccountCyd();
    }
}
